#!/bin/bash

# after kubeadm init
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

export KUBECONFIG=/etc/kubernetes/admin.conf

# worker nodes run kubeadm join
#kubeadm join 192.168.3.51:6443 --token xxxxxx \
#         --discovery-token-ca-cert-hash sha256:xxxx
